package com.ayit.car.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 * @TableName orders
 */
@TableName(value ="orders")
public class Orders implements Serializable {
    /**
     * 订单号
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 订单状态
     */
    private Object orderStatus;

    /**
     * 下单用户ID
     */
    private Long userId;

    /**
     * 收货地址
     */
    private String receiverAddress;

    /**
     * 下单时间
     */
    private Date orderTime;

    /**
     * 支付状态
     */
    private Object paymentStatus;

    /**
     * 物流状态
     */
    private Object deliveryStatus;

    /**
     * 成交价格
     */
    private BigDecimal finalPrice;

    /**
     * 备注
     */
    private String note;

    /**
     * 手机号
     */
    private String phoneNumber;

    /**
     * 用户昵称
     */
    private String userNickname;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    public Long getId() {
        return id;
    }

    /**
     * 订单号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 订单状态
     */
    public Object getOrderStatus() {
        return orderStatus;
    }

    /**
     * 订单状态
     */
    public void setOrderStatus(Object orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * 下单用户ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 下单用户ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 收货地址
     */
    public String getReceiverAddress() {
        return receiverAddress;
    }

    /**
     * 收货地址
     */
    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    /**
     * 下单时间
     */
    public Date getOrderTime() {
        return orderTime;
    }

    /**
     * 下单时间
     */
    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    /**
     * 支付状态
     */
    public Object getPaymentStatus() {
        return paymentStatus;
    }

    /**
     * 支付状态
     */
    public void setPaymentStatus(Object paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    /**
     * 物流状态
     */
    public Object getDeliveryStatus() {
        return deliveryStatus;
    }

    /**
     * 物流状态
     */
    public void setDeliveryStatus(Object deliveryStatus) {
        this.deliveryStatus = deliveryStatus;
    }

    /**
     * 成交价格
     */
    public BigDecimal getFinalPrice() {
        return finalPrice;
    }

    /**
     * 成交价格
     */
    public void setFinalPrice(BigDecimal finalPrice) {
        this.finalPrice = finalPrice;
    }

    /**
     * 备注
     */
    public String getNote() {
        return note;
    }

    /**
     * 备注
     */
    public void setNote(String note) {
        this.note = note;
    }

    /**
     * 手机号
     */
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * 手机号
     */
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    /**
     * 用户昵称
     */
    public String getUserNickname() {
        return userNickname;
    }

    /**
     * 用户昵称
     */
    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Orders other = (Orders) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getReceiverAddress() == null ? other.getReceiverAddress() == null : this.getReceiverAddress().equals(other.getReceiverAddress()))
            && (this.getOrderTime() == null ? other.getOrderTime() == null : this.getOrderTime().equals(other.getOrderTime()))
            && (this.getPaymentStatus() == null ? other.getPaymentStatus() == null : this.getPaymentStatus().equals(other.getPaymentStatus()))
            && (this.getDeliveryStatus() == null ? other.getDeliveryStatus() == null : this.getDeliveryStatus().equals(other.getDeliveryStatus()))
            && (this.getFinalPrice() == null ? other.getFinalPrice() == null : this.getFinalPrice().equals(other.getFinalPrice()))
            && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
            && (this.getPhoneNumber() == null ? other.getPhoneNumber() == null : this.getPhoneNumber().equals(other.getPhoneNumber()))
            && (this.getUserNickname() == null ? other.getUserNickname() == null : this.getUserNickname().equals(other.getUserNickname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getReceiverAddress() == null) ? 0 : getReceiverAddress().hashCode());
        result = prime * result + ((getOrderTime() == null) ? 0 : getOrderTime().hashCode());
        result = prime * result + ((getPaymentStatus() == null) ? 0 : getPaymentStatus().hashCode());
        result = prime * result + ((getDeliveryStatus() == null) ? 0 : getDeliveryStatus().hashCode());
        result = prime * result + ((getFinalPrice() == null) ? 0 : getFinalPrice().hashCode());
        result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
        result = prime * result + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode());
        result = prime * result + ((getUserNickname() == null) ? 0 : getUserNickname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", userId=").append(userId);
        sb.append(", receiverAddress=").append(receiverAddress);
        sb.append(", orderTime=").append(orderTime);
        sb.append(", paymentStatus=").append(paymentStatus);
        sb.append(", deliveryStatus=").append(deliveryStatus);
        sb.append(", finalPrice=").append(finalPrice);
        sb.append(", note=").append(note);
        sb.append(", phoneNumber=").append(phoneNumber);
        sb.append(", userNickname=").append(userNickname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}